<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Логистическая система Автобаза">
<link rel="shortcut icon"
	href="<c:url value='resources/img/autobase.ico'/>" type="image/x-icon">
<link rel="stylesheet" type="text/css"
	href="<c:url value='/resources/css/style.css'/>" />
<title><spring:message code="welcome_title" /></title>
</head>
<body>
	${message}
	<div class="container">
		<p class="lang">
			<spring:message code="current_lang" /> <br> <a href="?language=en">EN</a> | <a href="?language=ru">RU</a> 
		</p>
		<div class="header">
			<p align="right">
				<spring:message code="hello" />
			</p>
		</div>
		<div>
			<div class="left">
				<p>
					<a href="welcome"><spring:message code="back_to_main" /></a>
				</p>
			</div>
			<div class="center">
				
				<p>
					<spring:message code="username_placeholder"
						var="user_login_placeholder" />
					<spring:message code="userpassword_placeholder"
						var="user_password_placeholder" />
					<spring:message code="user_submit" var="submit" />
				</p>
				<p>${loginMessage}</p>
				
				<form name="loginform" action="signin" method="post">

					<p><spring:message code="enter_login" /></p><br>
					<table>
						<tr>
							<td><spring:message code="user_login" /></td>
							<td><input type="text"
								placeholder="${user_login_placeholder}" id="username"
								name="username"></td>
						</tr>
						<tr>
							<td><spring:message code="user_password" /></td>
							<td><input type="password" id="password" name="password"
								placeholder="${user_password_placeholder}"></td>
						</tr>
						<tr>
							<td rowspan="2"><input class="submit" name="submit"
								type="submit" value="${submit}"></td>
						</tr>
					</table>

				</form>
				

			</div>
			<div class="right">				

			</div>
		</div>

		<div class="footer">
			<p>
				<spring:message code="autobase_system" />
			</p>
		</div>
	</div>





	<div>
		<div>
			<h1>${message}</h1>
			<a href="?language=en">EN</a>|<a href="?language=ru">RU</a>
		</div>
		<div></div>

	</div>
</body>
</html>